<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<script>
//父节点.removeChild(子节点)
window.onload=function(){
	var aBtn=document.getElementsByTagName('a');
	var ul=document.getElementById('ul');
	for(var i=0;i<aBtn.length;i++){
		aBtn[i].onclick=function(){
			//this.parentNode.style.display='none';
			
			ul.removeChild(this.parentNode)
			
		};	
	};	
};
</script>
<ul id="ul">
	<li>111111111<a href="javascript:;">删除</a></li>
	<li>2222222222222<a href="javascript:;">删除</a></li>
	<li>33333333333333<a href="javascript:;">删除</a></li>
	<li>4444444444444<a href="javascript:;">删除</a></li>
	<li>5555555555<a href="javascript:;">删除</a></li>
</ul>
</body>
</html>
